#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    int s = 0;
    for(n = 2*n+1; n>0; n-=2)
    {
        for (int i=s; i>0; --i) cout << " ";
        ++s;
        for (int i=n; i>0; --i) cout << "#";
        cout << endl;
    }
    return 0;
}
